﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Net;
using commonFunctions;
namespace simpleDns

{
    class settings
    {
        public static string dataPath;
        public static Dictionary<string, DOMAIN> domains;
        public static int ttl_default;
        public static string dns1;
        public static string dns2;
        public static int cacheTrush;
        public static string serverIp;
        public static int udpNum;
        public static int tcpNum;
        public static bool autoStart;
        public static bool autoRun;
        public static bool autoHide;
        public static int serviceMode;
        public static asyncLog log;
        public static bool isIpAddress(string ip)
        {
            IPAddress i;
            return (IPAddress.TryParse(ip, out i));
        }
        
    }
    public enum ServiceMode
    {
        本地优先远程接锅 = 1,
        远程优先本地接锅 = 2,
        仅本地 = 3,
        仅远程 = 4
    }
    
}
